package com.edu.dao;

import com.edu.entity.Rentals;

import java.util.List;

public interface RentalsDao {
    /**
     * 根据id查询订单
     * @param id
     * @return
     */
    List<Rentals> getUidRentals(int id);

    /**
     * 添加订单
     * @param uId
     * @param vId
     * @param duration
     *  @param totalCost
     * @return
     */
    int addRental(int uId, int vId , int duration,double totalCost);
}
